<?php $this->display("objects/breadcrumbs") ?>

<h2><?php _e($pagetitle) ?></h2>
<p id="objdesc"><strong><?php _e($object['description']) ?></strong></p>

<?php echo $content ?>

<?php if (count($childs)): ?>
	<?php foreach ($childs as $i): ?>
		<?php if (checkPermission($i, "view")): ?>
			<p><a href="<?php echo Gene::makeLink($i) ?>"><?php _e($i['title']) ?></a><br /><?php _e($i['description']) ?></p>
		<?php endif; ?>
	<?php endforeach; ?>
<?php endif; ?>

<?php if (checkPermission($object, "write")): ?>
	<?php $this->display("objects/page/create"); ?>
<?php endif; ?>